package com.driving.exam.entity;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * @author SAGITTAR
 */
@Alias(value = "Coach")
@TableName(value = "tb_coach")
public class Coach extends Model<Coach> {

    private static final long serialVersionUID = 8736121698143716671L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name = StringUtils.EMPTY;

    @TableField(value = "detail")
    private String detail = StringUtils.EMPTY;

    @TableField(value = "price")
    private String price = StringUtils.EMPTY;

    @TableField(value = "mobile")
    private String mobile = StringUtils.EMPTY;

    @TableField(value = "big_area")
    private String bigArea = StringUtils.EMPTY;

    @TableField(value = "small_area")
    private String smallArea = StringUtils.EMPTY;

    @TableField(value = "image_path")
    private String imagePath = StringUtils.EMPTY;

    @TableField(value = "school_id")
    private Integer schoolId;

    @TableField(value = "coach_url")
    private String coachUrl = StringUtils.EMPTY;

    @TableField(value = "school_age")
    private int schoolAge;

    @TableField(exist = false)
    private String schoolName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getBigArea() {
        return bigArea;
    }

    public void setBigArea(String bigArea) {
        this.bigArea = bigArea;
    }

    public String getSmallArea() {
        return smallArea;
    }

    public void setSmallArea(String smallArea) {
        this.smallArea = smallArea;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    public String getCoachUrl() {
        return coachUrl;
    }

    public void setCoachUrl(String coachUrl) {
        this.coachUrl = coachUrl;
    }

    public int getSchoolAge() {
        return schoolAge;
    }

    public void setSchoolAge(int schoolAge) {
        this.schoolAge = schoolAge;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
